var lastScrollY=0;
var divtop = 300;
function divscroll()
{
    var diffY;
    if (document.documentElement && document.documentElement.scrollTop)
        diffY = document.documentElement.scrollTop;
    else if (document.body)
        diffY = document.body.scrollTop;
    else{/*Netscape stuff*/}
    percent=.1*(diffY-lastScrollY); 
    if(percent>0)
        percent=Math.ceil(percent); 
    else 
        percent=Math.floor(percent); 
    document.getElementById("webcall").style.top=parseInt(document.getElementById("webcall").style.top)+percent+"px";
    lastScrollY=lastScrollY+percent;
}
if(typeof logos == "undefined")
{
    logos = 0;
}
if(dfloat == "left")
{
    finfo = "left: 20px;";
}
else if(dfloat == "center")
{
    finfo = "right: 50%;";
}
else
{
    finfo = "right: 20px;";
}
var str = "<div id='webcall' align='center' style='z-index:99999;width: 130px; "+finfo+"position:absolute;top:"+divtop+"px;'><a href='JavaScript:void(0);' onclick=\"window.open('http://60.10.59.244/webcall/code.php?qyid="+account+"&hotline="+hotline+"&site="+site+"&logos="+logos+"&extension="+extension+"&company="+encodeURIComponent(company)+"','','width=450px,height=350px,top="+(screen.height-350)/2+",left="+(screen.width-300)/2+",resizable=no');\"><img style='border:0px' src='http://60.10.59.244/webcall/image/tel800.gif' /></a></div>";
document.write(str);
window.setInterval("divscroll()",1);
divscroll();